import App from './App'

import '.env.js'
import request from "@/common/request.js";
import config from "@/common/config.js";
import tools from "@/common/tools.js";
import common from "@/common/common.js";
import auth from "@/common/auth.js"

Vue.config.productionTip = false

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.prototype.$request = request;
Vue.prototype.$config = config;
Vue.prototype.$tools = tools;
Vue.prototype.$common = common;
Vue.prototype.$auth = auth;
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$request = request;
  app.config.globalProperties.$config = config;
  app.config.globalProperties.$tools = tools;
  app.config.globalProperties.$common = common;
  return {
    app
  }
}
// #endif